import hccmRequestUtil from "@/common/hccm-request-util.js"

module.exports = {
  // 获取查询项目类型
  examTypeList: param => hccmRequestUtil.getApi("/platform-api/app/examType/list", param, true),

  // 获取习题
  examinationList: param => hccmRequestUtil.getApi("/platform-api/app/examination/list", param, true),

  // 查询评分卡
  scoreCardList: param => hccmRequestUtil.getApi("/platform-api/app/scoreCard/list", param, true),

  // 查询自检卡
  getSelfInspectionCard: param => hccmRequestUtil.getApi("/platform-api/app/selfInspectionCard/list", param, true),

  // 查询提示卡
  getCueCard: param => hccmRequestUtil.getApi("/platform-api/app/cueCard/list", param, true),

  // 查询视频
  videoList: param => hccmRequestUtil.getApi("/platform-api/app/video/list", param, true),

  // 查询本人点评视频
  videoListPC: param => hccmRequestUtil.getApi("/platform-api/app/video/listPC", param, true),

  // 查询知识点
  examPointsList: param => hccmRequestUtil.getApi("/platform-api/app/examPoints/list", param, true),

  // 查询习题笔记
  notebookList: param => hccmRequestUtil.getApi("/platform-api/app/notebook/list", param, true),

  // 生成二维码
  getQrCode: param => hccmRequestUtil.postApi(`/platform-api/tool/QrCode/getQrCode`, param, true),

  // 查询视频的回看点
  videoPointsList: param => hccmRequestUtil.getApi("/platform-api/app/videoPoints/list", param, true),


  // 查询视频的点评点
  videoPointsListPC: param => hccmRequestUtil.getApi("/platform-api/app/videoPoints/listPC", param, true),

  // 新增或跟新点评点/回看点（添加或更新，传id为更新，不传id为添加）
  videoPointsSaveOrUpdate: param => hccmRequestUtil.postApi("/platform-api/app/videoPoints/saveOrUpdate", param, true),

  // 删除视频的点评点/回看点
  videoPointsDelete: param => hccmRequestUtil.postApi("/platform-api/app/videoPoints/delete", param, true),

  // 删除视频的点评点/回看点
  uploadFile: param => hccmRequestUtil.postApi("/platform-api/app/videoPoints/delete", param, true),

  // 搜索记录 查询
  searchHistoryList: param => hccmRequestUtil.getApi("/platform-api/app/searchHistory/list", param, true),

  // 搜索记录 新增或更新
  searchHistorySaveOrUpdate: param => hccmRequestUtil.postApi("/platform-api/app/searchHistory/saveOrUpdate", param, true),

  // 搜索记录 删除
  searchHistoryDelete: param => hccmRequestUtil.postApi("/platform-api/app/searchHistory/delete", param, true),

  // 搜索记录 删除用户下全部搜索记录
  searchHistoryDeleteAll: param => hccmRequestUtil.postApi("/platform-api/app/searchHistory/deleteAll", param, true),

  // 搜索记录 查询
  uploadFile: param => hccmRequestUtil.postApi("/platform-api/app/searchHistory/list", param, true),

  // 获取老师列表 查询
  teacherList: param => hccmRequestUtil.getApi("/platform-api/app/teacher/list", param, true),

  // 获取老师列表 科室查询  examNum传 1 过滤
  deptList: param => hccmRequestUtil.getApi("/platform-api/app/dept/list", param, true),

  // 获取题目  examNum传 1 过滤
  examNameTypeList: param => hccmRequestUtil.getApi("/platform-api/app/examNameType/list", param, true),

  // 资料上传
  saveOrUpdate: param => hccmRequestUtil.postApi("/platform-api/app/video/saveOrUpdate", param, true),
  
  // 上传base64
  uploadBase64FileBody: param => hccmRequestUtil.postApi("/platform-api/tool/upload/uploadBase64FileBody", param, true),

  // 上传进度
  getUploadInfo: param => hccmRequestUtil.postApi("/platform-api/tool/upload/getUploadInfo", param, true),

  // 获取笔记
  getNotebook: param => hccmRequestUtil.getApi("/platform-api/app/notebook/list", param, true),

  // 获取消息未读数量
  notifyListUnread: param => hccmRequestUtil.getApi("/platform-api/app/notify/listUnread", param, true),

  // 获取消息列表
  notifyList: param => hccmRequestUtil.getApi("/platform-api/app/notify/list", param, true),

  // 消息标记已读
  notifyIsRead: param => hccmRequestUtil.postApi("/platform-api/app/notify/isRead", param, true),

  // 保存更新笔记 
  saveOrUpdateNotebook: param => hccmRequestUtil.postApi("/platform-api/app/notebook/saveOrUpdate", param, true),

  // 26、新增考试记录（线上） 
  examRecordsXianShang: param => hccmRequestUtil.postApi("/platform-api/app/examRecords/saveOrUpdate", param, true),
  
  // 查询历史成绩
  examRecordsListGroup: param => hccmRequestUtil.getApi("/platform-api/app/examRecords/listGroup", param, true),

  // 获取考试记录列表
  examRecordsList: param => hccmRequestUtil.getApi("/platform-api/app/examRecords/list", param, true),

  // 查看考试记录详情（评分卡评分）
  examRecordsDetailList: param => hccmRequestUtil.getApi("/platform-api/app/examRecordsDetail/list", param, true),

  // 新增考试记录
  examRecordsSaveOrUpdate: param => hccmRequestUtil.postApi("/platform-api/app/examRecords/saveOrUpdate", param, true),


  // 新增考试记录(线下)
  examRecordsSaveXianXia: param => hccmRequestUtil.postApi("/platform-api/app/examRecords/saveXianXia", param, true),

  // login
  loginByMobile: param => hccmRequestUtil.postApi("/platform-api/app/auth/loginByMobile", param, true),

  // login 验证码
  loginByMobileCode: param => hccmRequestUtil.postApi("/platform-api/app/auth/loginByMobileCode", param, true),

  // 发送验证码
  smsCode: param => hccmRequestUtil.postApi("/platform-api/app/index/smsCode", param, true),

  // 注册
  register: param => hccmRequestUtil.postApi("/platform-api/app/auth/register", param, true),

  // LOGIN
  getOpenId: param => hccmRequestUtil.getApi("/wx/getOpenId", param, true),

  // 通过手机号获取token
  getToken: param => hccmRequestUtil.postApi("/authentication/getToken", param, true),

  // 获取用户详情
  getPatient: param => hccmRequestUtil.postApi("/patient/getPatient", param, true),

  // 支付
  prePay: param => hccmRequestUtil.postApi("/wx/prePay", param, true),

  // 生成订单
  createOrder: param => hccmRequestUtil.postApi("/order/createOrder", param, true),

  // 生成订单-盛京
  createOrderShengJing: param => hccmRequestUtil.postApi("/order/createOrderShengJing", param, true),

  // 更新订单
  updateOrderByOrderId: param => hccmRequestUtil.postApi("/order/updateOrderByOrderId", param, true),

  // 查询订单
  getOrder: param => hccmRequestUtil.postApi("/order/getOrder", param, true),

  // 订单 详情
  getOrderDetail: param => hccmRequestUtil.postApi("/order/getOrderDetail", param, true),

  // 京东money
  freightQuery: param => hccmRequestUtil.postApi("/JD/freightQuery", param, true),

  // 退费
  refunds: param => hccmRequestUtil.postApi("/wx/refunds", param, true),

  // 京东详情
  listOrderRoute: param => hccmRequestUtil.postApi("/JD/listOrderRoute", param, true),
  // 省市区
  getArea: param => hccmRequestUtil.postApi("/area/getArea", param, true),

  // 处方列表 省人民
  // getPrescription: param => hccmRequestUtil.postApi('/prescription/getPrescription', param, true), //省人民
  // 处方列表 盛京
  getPrescription: param => hccmRequestUtil.postApi("/prescription/getDrugstorePrescription", param, true), //盛京

  // 获取处方详情
  getPrescriptionDetail: param => hccmRequestUtil.postApi("/prescription/getPrescriptionDetail", param, true),

  // 盛京获取订单信息 prescriptionIds：[],hospId:''
  getOrderByPreIdAndHospIds: param => hccmRequestUtil.postApi("/order/getOrderByPreIdAndHospIds", param, true),

  // 获取地址列表
  getAddress: param => hccmRequestUtil.postApi("/address/getAddress", param, true),

  // 获取地址详情
  getAddressById: param => hccmRequestUtil.postApi("/address/getAddressById", param, true),

  // 更新地址详情
  updateAddress: param => hccmRequestUtil.postApi("/address/updateAddress", param, true),

  // 新增地址
  createAddress: param => hccmRequestUtil.postApi("/address/createAddress", param, true),

  // 删除地址
  deleteAddress: param => hccmRequestUtil.postApi("/address/deleteAddress", param, true),

  // 二维码
  getPrescriptionQRcode: param => hccmRequestUtil.postApi("/prescription/getPrescriptionQRcode", param, true),

  // 根据医院处方id和医院id获取处方（单张处方） 参数是hisPrescriptionId和hospId
  getPrescriptionByHospPrIdAndHospId: param => hccmRequestUtil.postApi("/prescription/getPrescriptionByHospPrIdAndHospId", param, true),

  // 针剂列表
  getDrugstorePrescriptionSTD: param => hccmRequestUtil.postApi("/prescription/getDrugstorePrescriptionSTD", param, true),

  // 龙邦实时数据
  realTimeMeterData: param => hccmRequestUtil.postApi("/open/realTimeMeterData.api", param, true),

  // 针剂详情
  getOrderZj: param => hccmRequestUtil.postApi("/order/getOrderZj", param, true),
}
